package ModelLayer;


/**
 * The class Copy is to hold and generate information about a DVD copy needed for the DvdCollection class.
 * 
 * @author (grp b) 
 * @version (6-11-2012)
 */
public class Copy
{
    // instance variables - replace the example below with your own
    private String serialNumber;
    private String acquisitionDate;
    private double acquisitionPrice;

    /**
     * Constructor for objects of class Copy
     */
    public Copy(String serialNumber, String acquisitionDate, double acquisitionPrice)
    {
        // initialise instance variables
        this.serialNumber = serialNumber;
        this.acquisitionDate = acquisitionDate;
        this.acquisitionPrice = acquisitionPrice;
    }
    
    /**
     * This method changes the serial number of this copy.
     * 
     * @param   serialNumber    The new serialNumber of this copy.
     */
    public void setSerialNumber(String serialNumber)
    {
        this.serialNumber = serialNumber;
    }
   
    /**
     * This method returns the serial Number for this copy.
     * 
     * @return  The serial number of this copy, as a String.
     */
    public String getSerialNumber()
    {
        return serialNumber;
    }
    
    /**
     * This method performs the temporaly questionable task of changing the date acquisition.
     * 
     * @param   acqquisitionDate    The new date of acquisition. A String.
     */
    public void setAcquisitionDate(String acquisitionDate)
    {
        this.acquisitionDate = acquisitionDate;
    }
   
    /**
     * This method returns tha acquisition date.
     * 
     * @return  The acquisition date of this copy, as a String.
     */
    public String getAcquisitionDate()
    {
        return acquisitionDate;
    }
   
    /**
     * This method changes the acquisition price of the this copy.
     * 
     * @param   acquisition price of this copy.
     */
    public void setAcquisitionPrice(double acquisitionPrice)
    {
        this.acquisitionPrice = acquisitionPrice;
    }
    
    /**
     * This method retruns the acquisition price of this copy.
     * 
     * @return  The acquisition price of this copy.
     */
    public double getAcquisitionPrice()
    {
        return acquisitionPrice;
    }
}
